<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" href="/src/resources/css/base.css" >
<script charset="utf-8" src="/src/core/require-jquery.js"></script>
<script src="/demo/baseUrl.js"></script>
</head>
<body>
<input type="text" id="text" value="text" />
<input type="button" id="set" value="set" />
<input type="button" id="get" value="get" />
<script>
jQuery(function(){
	require(['io/LocalStorage'],function(LocalStorage){
			
		jQuery("#set").click(function(){
			var val = jQuery("#text").val();
			var rnt = LocalStorage.setItem("shawnText",val);
			alert(rnt)
			
		});
		jQuery("#get").click(function(){
			alert("LocalStorage: " + LocalStorage.getItem("shawnText"))
		});
	});
});
</script>
</body>
</html>